From 90ca8f62cba88823c79951eaa7427495d68dd9a1 Mon Sep 17 00:00:00 2001 From: "rn@wyvis.research.intel-research.net" Date: Fri, 14 Mar 2003 16:53:36 +0000 Subject: [PATCH] bitkeeper revision 1.128 (3e7209106WnBs5UIbLU-KwO7AKfIRg) merged in KAF's changes --- xen/common/schedule.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index ce46069167..7755f35ae3 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -148,6 +148,7 @@ int wake_up(struct task_struct *p) /**************************************************************************** * Domain requested scheduling operations + * KAF: No, turn it back into do_yield()! ****************************************************************************/ long do_sched_op(void) { @@ -419,6 +420,14 @@ asmlinkage void schedule(void) return; } +/* No locking needed -- pointer comparison is safe :-) */ +int idle_cpu(int cpu) +{ + struct task_struct *p = schedule_data[cpu].curr; + return p == idle_task[cpu]; +} + + /* * The scheduler timer. */ -- 2.30.2